package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    //添加
    public void add(Setmeal setmeal);

    //设置检查套餐和检查组多对多关联关系
    public void setSetmealAndCheckGroup(Map map);

    public Page<Setmeal> findByCondition(String queryString);
    //查询所有套餐
    public List<Setmeal> findAll();
    //通过ID查询套餐
    public Setmeal findById(int id);
    //通过ID查询套餐详细
    public Setmeal findById4Detail(Integer id);

    public List<Map<String, Object>> findSetmealCount();
}
